package com.example.vue.account.filter;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;

/**
 * 登录接口的认证管理
 *
 * @author zhouxl
 * @DATE 2020/11/29
 * @descriptoin
 */
@WebFilter("/**")
public class LoginFilter implements Filter {

    @Override
    public void init(FilterConfig filterConfig) throws ServletException {

    }

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        /*
        1.拦截的请求中
            1.1.是否需要被认证的请求
            1.2.是否需要被有被权限管理的请求(角色,部门等资源管理)
            1.3.
         */
    }

    @Override
    public void destroy() {

    }
}
